import request from "./request.js";
const api = {};
// -------------首页api------------
// 获取轮播图
api.getCarousel = () => request("v1/slideshow", "GET");

// 获取f6热门职位
api.getJobdata = () => request("v1/news/job", "GET");

// 获取f3公司
api.getData = () => request("v1/news/firm", "GET");

// ----------详情页------
api.companyintro = (jid) => request(`v1/news/companyintro?j_id=${jid}`, "GET");

// 根据用户传递过来的ID获取数据
api.getJobdata=(jid)=>request(`v1/news/ou?jid=${jid}`,"GET")
// 通过vuex里面存储的用户名获取用户的手机号头像
// api.UNAME=(loginuname)=>request(`v1/users/juser?uname=${loginuname}`,"GET")


//post写法
// api.up_video = (params) => request(`/parent/audio/uploadAudio`, "POST", params);

export default api;
